package com.jinlia.show.modules.wxapp.controller;

import com.jinlia.show.modules.base.wxapp.entity.MemberRechargeDiscount;
import com.jinlia.show.modules.base.wxapp.service.MemberRechargeDiscountMapperService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Slf4j
@RestController
@RequiredArgsConstructor
@RequestMapping("/member/recharge/discount")
public class MemberRechargeDiscountController {

    @Autowired
    private MemberRechargeDiscountMapperService memberTopUpMapperService;

    @GetMapping()
    public ResponseEntity<List<MemberRechargeDiscount>> getById() {
        List<MemberRechargeDiscount> list = memberTopUpMapperService.lambdaQuery().list();
        return ResponseEntity.ok(list);
    }
}
